package learn_design_patterns.c1.ducks;

import learn_design_patterns.c1.Duck;
import learn_design_patterns.c1.behaviors.fly.FlyNoWay;
import learn_design_patterns.c1.behaviors.quack.Quack;

/**
 * 模型鸭，火箭动力飞行
 * @author zhangchen
 *
 */
public class ModelDuck extends Duck {
	
	public ModelDuck() {
		flyBehavior = new FlyNoWay();
		quackBehavior = new Quack();
	}

	@Override
	public void display() {
		System.out.println("I'm a model duck");
	}

}
